<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<include file="Public:html:inHeader" />
<style>
#homecontent{
	width:670px;
	height:450px;
	float:right;
	padding-top:30px;
}
.confirmOrder{
	width:650px;
	height:300px;
	background-color:#FFFFFF;
}
#title{
	width:100px;
	padding-top:25px;
	padding-left:20px;
	float:left;
}
#titleContent{
	width:510px;
	padding-top:20px;
	float:right;
}
#u1{
	color:#FF7625;
	font-size:13px;
	font-weight:bold;
}
#u2{
	color:#FF7625;
	font-size:14px;
	font-weight:bold;
	padding-top:5px;
}
#titleContent table{
	font-size:14px;
	font-family: "黑体";
}
#titleContent table td{
	height:20px;
}
</style>
<script>
$(document).ready(function(){
	$("#errorButton").bind('click',function(){
		window.location.href="?g=Home&m=Index&a=viewbg&sid="+$("#sid").val();
	});
	
	$("#okButton").bind('click',function(){
		$.ajax({
			   type: "POST",
			   url: "?g=Home&m=Index&a=saveBgOrder",
			   data: "sid="+$("#sid").val()+'&rd'+Math.random(),
			   //dataType:'json',
			   success: function(msg){
				 //alert(msg);
				 
				 var type='2';
				 var info="系统错误！";
				 var url="?g=Home&m=Index&a=index";
				 if(msg=='n'){
					
					info="您下单失败!";
				 }else{
					 type='1'; 
					 info="您下单成功!<br>编号为:"+msg;
					 url="?g=Home&m=Order&a=olist";
				 }
				 window.location.href="?g=Home&m=Index&a=info&type="+type+"&info="+encodeURI(info)+"&url="+encodeURIComponent(url);
			   },
			   error:function(msg,err,ob){
				   
			   }
		});
	});
});
</script>

<div class="mainbody">
	<include file="Public:html:header" />
	<div class="mainContent">
	  <div id="homemenu">
	  		<!-- 左边菜单 -->
	  		<include file="Public:html:menu" menu="{$menu}" />
	  </div>
	  <div id="homecontent">
	  		<!-- 右边主体 -->
	  		<div class="confirmOrder">
	  			<div id="title">
	  				<div id="u1">请确认您的</div>
	  				<div id="u2">工单信息：</div>
	  			</div>
	  			<div id="titleContent">
	  				<table border="0" cellspacing="0" cellpadding="0" width="100%">
	  					<tr>
	  						<td width="30%">
	  							姓名：
	  							<span>{$data.U_NAME}</span>
	  						</td>
	  						
	  						<td width="30%">
	  						电话：<span>{$data.U_MOBILE}</span>
	  						</td>
	  						<td width="40%"></td>
	  					</tr>
	  					<tr>
	  						<td colspan="6">
	  							地址：
	  							<span>({$data.AR_L1}{$data.AR_L2}{$data.AR_L3}){$data.O_ADDRESS}</span>
	  						</td>
	  						
	  					</tr>
	  					<tr><td>&nbsp;</td></tr>
	  					<tr><td>&nbsp;</td></tr>
	  					<tr>
	  						<td>品牌：<span>{$data.P_BRAND}</span></td>
	  						<td>品类：<span>{$data.P_CATEGORY}</span></td>
	  						<td>型号：<span>{$data.P_MODEL}</span></td>
	  					</tr>
	  					<tr>
	  						<td>购买时间：<span>{$data.P_BUY_TIME}</span></td>
	  						<td>购买渠道：<span>{$data.P_CHANNEL}</span></td>
	  						<td></td>
	  					</tr>
	  					
	  					<tr><td>&nbsp;</td></tr>
	  					<tr><td>&nbsp;</td></tr>
	  					<tr>
	  						<td colspan="6">备注：<span>{$data.O_MEMO}</span></td>
	  						
	  					</tr>
	  					<tr><td>&nbsp;</td></tr>
	  					<tr><td>&nbsp;</td></tr>
	  					
	  					<tr>
	  						<td >
	  							
	  						</td>
	  						<td colspan="2" align="right">
	  							<input type="hidden" id="sid" value="{$sid}"> 
	  							<div style="padding-right:20px;"><img id="errorButton" style="cursor:pointer" src="__PUBLIC__/images/home/bg-err-button.png" align="middle"/>
	  							<img src="__PUBLIC__/images/home/bg-ok-button.png" id="okButton" align="middle" style="cursor:pointer" />
	  							</div>
	  						</td>
	  						
	  					</tr>
	  					
	  					
	  				</table>
	  			</div>
	  		</div>
	  </div>
	</div>
	<div class="mainContent1">
		
	</div>
	<include file="Public:html:footer" />
</div>
<include file="Public:html:inFooter" />